package by.gravity.drive_track.model;

import java.io.Serializable;

import com.google.android.gms.maps.model.LatLng;
import com.google.gson.Gson;

import by.gravity.common.cache.model.ICacheModel;

public class Favorite implements ICacheModel, Serializable {

	private static final long serialVersionUID = 3951928722353651309L;

	private Long ID;

	private long date;

	private LatLng point;

	private String name;

	public Favorite() {

	}

	public Favorite(long id, long date, LatLng point) {
		this.ID = id;
		this.date = date;
		this.point = point;
	}

	public LatLng getPoint() {
		return point;
	}

	public void setPoint(LatLng point) {
		this.point = point;
	}

	public void setId(long id) {
		ID = id;
	}

	public void setDate(long date) {
		this.date = date;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public long getID() {
		return ID;
	}

	@Override
	public long getDate() {
		return date;
	}

	@Override
	public String getJson() {
		return new Gson().toJson(this);
	}

}
